package com.ziyucoding.springboot.labs.statemachine.service;

import com.ziyucoding.springboot.labs.statemachine.domain.Order;

/**
 * 订单 服务接口
 *
 * @author ziyucoding
 * @date 2023-05-29
 **/
public interface OrderService {

    Order create(Order order);

    Order pay(Long id);

    Order deliver(Long id);

    Order receive(Long id);

    Order getById(Long id);
}
